<template>
  <el-dialog
    v-dialogDrag
    title="公司分配"
    :visible.sync="this.$parent.companydialogVisible"
    width="60%"
    length="100%"
    :before-close="this.$parent.cancelCompany"
  >
    <el-table
      ref="companyTable"
      v-loading="this.$parent.listLoading"
      :data="this.$parent.companyData"
      selectableg
      highlight-current-row
      height="350"
      style="width: 100%"
    >
      <el-table-column type="selection" />
      <el-table-column label="公司编号" align="center" prop="code" />
      <el-table-column label="公司名称" align="center" prop="name" />
    </el-table>
    <span slot="footer">
        <el-button
          style="margin-left: 30px"
          @click="this.$parent.cancelCompany"
        >取 消</el-button>
        <el-button type="primary" @click="this.$parent.assignCompany">确 定</el-button>
      </span>
  </el-dialog>
</template>

<script>
export default {
  name: 'company_dialog'
}
</script>

<style scoped>

</style>
